#pragma
#include<iostream>

using namespace std;
#include "template.h"
using namespace yazi::utility;
class B
{
	friend class Singleton<B>;	//友元，
public:
	void show()
	{
		cout << "name = " << m_name << endl;
	}

private:
	B() :m_name("李四") {};	//一、构造函数设为私有
	B(const B&) {}			//禁用拷贝构造函数
	~B() {}
	B& operator = (const B&);	//禁用赋值构造函数

private:
	string m_name;
};

